package com.bruan.d10_extendoverride;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        B b = new B();
        b.print1();

        Student s = new Student("波妞",11);
        System.out.println(s.toString());//默认会用可以省略
        System.out.println(s);

        ArrayList array = new ArrayList<>();
        array.add("java");
        System.out.println(array);
    }
}
